home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / CPlus.Dev$ 2⁄16⁄90 / 0052-Re Good KeyMap handl-Feb90 < prev    next >
Encoding:
Text File  |  1990-02-16  |  614 b   |  23 lines  |  [TEXT/GEOL]

  1. Item    9961073                         13-Feb-90        12:03PST
  2.  
  3. From:   WINGZ.TECH                      Informix SW, Keith A Esau,PRT
  4.  
  5. To:     CPLUS.DEV$                      C++ Interest List--Developers
  6.  
  7. cc:     DAWSON.M                        Dawson, Mark
  8.  
  9. Sub:    Re: Good KeyMap handling
  10.  
  11. I've added the following define to events.h:
  12.  
  13. #define KEYON(thekeys,whichkey) (((char *)thekeys)[(whichkey) / 8] & \
  14.     (1 << ((whichkey) & 0x07)))
  15.  
  16. (don't forget that Pascal numbers bits backward).
  17.  
  18. This way looks clean at least, (and compiles well).
  19.  
  20. Keith Esau, Informix Software
  21. AppleLink: WINGZ.TECH
  22.  
  23.